<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数据库连接初始化</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>数据库连接初始化</h1>
<form id="connectForm">
    <label for="dbUrl">数据库URL:</label><br>
    <input type="text" id="dbUrl" name="dbUrl" value="jdbc:mysql://localhost:3306/mydatabase"><br><br>

    <label for="username">用户名:</label><br>
    <input type="text" id="username" name="username" value="myusername"><br><br>

    <label for="password">密码:</label><br>
    <input type="password" id="password" name="password" value="mypassword"><br><br>

    <input type="button" value="连接数据库" onclick="connectDatabase()">
</form>

<div id="result"></div>

<script src="script.js"></script>
</body>
</html>